MailPoet\Segments\WooCommerce S

Total Complexity 48
Dependencies 12
Dependents 6
Total lines 434
Lines of code 338
Logical lines of code 149
Comment lines 33
Methods 17
Properties 7

Methods 17

Method Rating Maintainability Complexity Lines of code
synchronizeRegisteredCustomer()
A
46 11 39
synchronizeGuestCustomer()
S
52 6 24
insertSubscribersFromOrders()
S
55 4 20
removeOrphanedSubscribers()
S
43 1 65
needsCollationChange()
S
60 4 13
updateFirstNames()
S
57 3 18
updateLastNames()
S
57 3 18
ensureColumnCollation()
S
60 3 14
updateStatus()
S
55 2 22
removeUpdatedSubscribersWithInvalidEmail()
S
58 2 17
shouldShowWooCommerceSegment()
S
67 3 8
updateGlobalStatus()
S
55 1 27
synchronizeCustomers()
S
60 1 15
markRegisteredCustomers()
S
63 1 11
insertUsersToSegment()
S
65 1 10
unsubscribeUsersFromSegment()
S
65 1 10
__construct()
S
69 1 7